#!/bin/bash
# javac -h  ./cpp/inc  -cp /home/ryan/workroom/wish_JniBean/app/java/com/wish/jniProtocal/      /home/ryan/workroom/wish_JniBean/app/java/com/wish/jniProtocal/NativeLibrary.java 
javac -h  ./cpp/inc    ./com/wish/jni/NativeLibrary.java 
gcc -fPIC -I /usr/lib/jvm/java-1.8.0-openjdk-amd64/include -I /usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux/   -I ./cpp/inc  -shared -o  /usr/lib/libNativeLibrary.so ./cpp/src/NativeLibrary.c  ./cpp/src/Register.c   ./cpp/src/protocalParsing.c
cp  /usr/lib/libNativeLibrary.so ../jni-lib4protocal/
cp ./com/wish/jni/DataBean.java ../jni-lib4protocal/
cp ./com/wish/jni/NativeLibrary.java ../jni-lib4protocal/
